.class public Lnbisdk/dg;
.super Ljava/lang/Object;

# interfaces
.implements Lnbisdk/ms;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lnbisdk/dg$a;,
        Lnbisdk/dg$b;
    }
.end annotation


# instance fields
.field private cW:Lnbisdk/rj;

.field private d:Lnbisdk/ov;

.field private jc:Lnbisdk/kg;

.field private jd:Lnbisdk/mm;

.field private je:Ljava/io/ByteArrayOutputStream;

.field private jf:Lnbisdk/bq;

.field private jg:I

.field private jh:Lcom/navbuilder/nb/c;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method constructor <init>(Lnbisdk/rj;)V
    .locals 4

    const/4 v3, 0x1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    iput v0, p0, Lnbisdk/dg;->jg:I

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/dg;->jh:Lcom/navbuilder/nb/c;

    const-wide/high16 v0, 0x4

    invoke-static {v0, v1}, Lnbisdk/pn;->k(J)Lnbisdk/ov;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/dg;->d:Lnbisdk/ov;

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/dg;->d:Lnbisdk/ov;

    const-string v1, "opening new network connection"

    invoke-virtual {v0, v1}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    :cond_0
    iput-object p1, p0, Lnbisdk/dg;->cW:Lnbisdk/rj;

    new-instance v0, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V

    iput-object v0, p0, Lnbisdk/dg;->je:Ljava/io/ByteArrayOutputStream;

    new-instance v0, Lnbisdk/nr;

    iget-object v1, p0, Lnbisdk/dg;->je:Ljava/io/ByteArrayOutputStream;

    invoke-direct {v0, v1}, Lnbisdk/nr;-><init>(Ljava/io/OutputStream;)V

    new-instance v1, Lnbisdk/mm;

    iget-object v2, p0, Lnbisdk/dg;->cW:Lnbisdk/rj;

    invoke-direct {v1, v2, v0}, Lnbisdk/mm;-><init>(Lnbisdk/rj;Lnbisdk/dd;)V

    iput-object v1, p0, Lnbisdk/dg;->jd:Lnbisdk/mm;

    :try_start_0
    iget-object v0, p0, Lnbisdk/dg;->jd:Lnbisdk/mm;

    const-string v1, "iden!"

    iget-object v2, p0, Lnbisdk/dg;->cW:Lnbisdk/rj;

    invoke-interface {v2}, Lnbisdk/rj;->kQ()[B

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lnbisdk/mm;->a(Ljava/lang/String;[B)I

    invoke-direct {p0}, Lnbisdk/dg;->flush()V
    :try_end_0
    .catch Lnbisdk/rp; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    iput v3, p0, Lnbisdk/dg;->jg:I

    iget v0, p0, Lnbisdk/dg;->jg:I

    if-eq v0, v3, :cond_1

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "open not started"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :catch_0
    move-exception v0

    new-instance v1, Lcom/navbuilder/nb/NBException;

    const/16 v2, 0x62

    invoke-direct {v1, v2, v0}, Lcom/navbuilder/nb/NBException;-><init>(ILjava/lang/Exception;)V

    invoke-virtual {p0, v1}, Lnbisdk/dg;->g(Lcom/navbuilder/nb/NBException;)V

    goto :goto_0

    :cond_1
    new-instance v0, Lnbisdk/dg$b;

    invoke-direct {v0, p0}, Lnbisdk/dg$b;-><init>(Lnbisdk/dg;)V

    invoke-virtual {v0}, Lnbisdk/dg$b;->start()V

    return-void
.end method

.method static synthetic a(Lnbisdk/dg;I)I
    .locals 0

    iput p1, p0, Lnbisdk/dg;->jg:I

    return p1
.end method

.method static synthetic a(Lnbisdk/dg;Lnbisdk/bq;)Lnbisdk/bq;
    .locals 0

    iput-object p1, p0, Lnbisdk/dg;->jf:Lnbisdk/bq;

    return-object p1
.end method

.method static a(Lnbisdk/hj;Lnbisdk/le;)Lnbisdk/fk;
    .locals 6

    const/4 v5, 0x1

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    invoke-static {p0}, Lnbisdk/ix;->b(Lnbisdk/hj;)Z

    move-result v0

    if-nez v0, :cond_1

    invoke-static {p1}, Lnbisdk/dg;->b(Lnbisdk/le;)Lnbisdk/fk;

    move-result-object v0

    :cond_0
    :goto_0
    return-object v0

    :cond_1
    new-instance v0, Lnbisdk/ri;

    const-string v1, "iden"

    invoke-direct {v0, v1}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    const-string v1, "credential"

    invoke-virtual {p1}, Lnbisdk/le;->hS()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lnbisdk/ri;->c(Ljava/lang/String;[B)V

    invoke-virtual {p1}, Lnbisdk/le;->hW()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lnbisdk/qm;->aG(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v2

    if-eqz v2, :cond_2

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v2

    if-ne v2, v5, :cond_3

    :cond_2
    new-instance v0, Ljava/lang/SecurityException;

    const-string v1, "NBNetworkCommon.getIdentTPSBody needs MDN."

    invoke-direct {v0, v1}, Ljava/lang/SecurityException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_3
    const-string v2, "mdn"

    invoke-static {v1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v3

    invoke-static {v0, v2, v3, v4}, Lnbisdk/ka;->a(Lnbisdk/ri;Ljava/lang/String;J)V

    const-string v1, "min"

    const-string v2, "\u0000"

    invoke-virtual {v0, v1, v2}, Lnbisdk/ri;->b(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "platform-id"

    const-string v2, "\u0000"

    invoke-virtual {v0, v1, v2}, Lnbisdk/ri;->b(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "device"

    invoke-virtual {p1}, Lnbisdk/le;->hU()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lnbisdk/ri;->b(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "language"

    invoke-virtual {p1}, Lnbisdk/le;->df()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lnbisdk/ri;->b(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "carrier"

    invoke-virtual {p1}, Lnbisdk/le;->hT()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lnbisdk/ri;->b(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "os"

    const-string v2, "java"

    invoke-virtual {v0, v1, v2}, Lnbisdk/ri;->b(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "gps"

    new-array v2, v5, [B

    const/4 v3, 0x0

    aput-byte v5, v2, v3

    invoke-virtual {v0, v1, v2}, Lnbisdk/ri;->c(Ljava/lang/String;[B)V

    const-string v1, "gwsid"

    invoke-virtual {p1, v1}, Lnbisdk/le;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_0

    const-string v2, "gwsubid"

    invoke-virtual {v0, v2, v1}, Lnbisdk/ri;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0
.end method

.method static synthetic a(Lnbisdk/dg;Lnbisdk/kg;)Lnbisdk/kg;
    .locals 0

    iput-object p1, p0, Lnbisdk/dg;->jc:Lnbisdk/kg;

    return-object p1
.end method

.method static synthetic a(Lnbisdk/dg;)Lnbisdk/ov;
    .locals 1

    iget-object v0, p0, Lnbisdk/dg;->d:Lnbisdk/ov;

    return-object v0
.end method

.method static synthetic a(Lnbisdk/dg;Ljava/lang/Exception;)V
    .locals 3

    new-instance v0, Lcom/navbuilder/nb/NBException;

    const/16 v1, 0x7d3

    const-string v2, "connection dead but not closed"

    invoke-direct {v0, v1, v2, p1}, Lcom/navbuilder/nb/NBException;-><init>(ILjava/lang/String;Ljava/lang/Exception;)V

    invoke-virtual {p0, v0}, Lnbisdk/dg;->g(Lcom/navbuilder/nb/NBException;)V

    return-void
.end method

.method static synthetic b(Lnbisdk/dg;)Ljava/io/ByteArrayOutputStream;
    .locals 1

    iget-object v0, p0, Lnbisdk/dg;->je:Ljava/io/ByteArrayOutputStream;

    return-object v0
.end method

.method private static b(Lnbisdk/le;)Lnbisdk/fk;
    .locals 5

    new-instance v0, Lnbisdk/ri;

    const-string v1, "iden"

    invoke-direct {v0, v1}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/ix;->gQ()Lnbisdk/hj;

    move-result-object v1

    const/16 v2, 0xc

    invoke-interface {v1, v2}, Lnbisdk/hj;->isEnabled(I)Z

    move-result v2

    if-eqz v2, :cond_0

    new-instance v2, Lnbisdk/ri;

    const-string v3, "emulator"

    invoke-direct {v2, v3, v0}, Lnbisdk/ri;-><init>(Ljava/lang/String;Lnbisdk/ri;)V

    :cond_0
    new-instance v2, Lnbisdk/ri;

    const-string v3, "want-iden-receipt"

    invoke-direct {v2, v3, v0}, Lnbisdk/ri;-><init>(Ljava/lang/String;Lnbisdk/ri;)V

    invoke-virtual {p0}, Lnbisdk/le;->hY()[B

    move-result-object v2

    if-nez v2, :cond_4

    const/16 v3, 0xb

    invoke-interface {v1, v3}, Lnbisdk/hj;->L(I)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_4

    :try_start_0
    const-string v2, "ISO-8859-1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B
    :try_end_0
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v1

    :goto_0
    if-nez v1, :cond_3

    new-instance v1, Lnbisdk/ri;

    const-string v2, "want-client-guid-assigned"

    invoke-direct {v1, v2, v0}, Lnbisdk/ri;-><init>(Ljava/lang/String;Lnbisdk/ri;)V

    :goto_1
    const-string v1, "credential"

    invoke-virtual {p0}, Lnbisdk/le;->hS()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lnbisdk/ri;->c(Ljava/lang/String;[B)V

    const-string v1, "language"

    invoke-virtual {p0}, Lnbisdk/le;->df()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lnbisdk/ri;->b(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "device"

    invoke-virtual {p0}, Lnbisdk/le;->hU()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lnbisdk/ri;->b(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p0}, Lnbisdk/le;->hW()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lnbisdk/qm;->aG(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_1

    const-string v2, "mdn"

    invoke-static {v1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v3

    invoke-static {v0, v2, v3, v4}, Lnbisdk/ka;->a(Lnbisdk/ri;Ljava/lang/String;J)V

    :cond_1
    const-string v1, "carrier"

    invoke-virtual {p0}, Lnbisdk/le;->hT()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lnbisdk/ri;->b(Ljava/lang/String;Ljava/lang/String;)V

    const-string v1, "client-session"

    sget-wide v2, Lnbisdk/ix;->mt:J

    invoke-static {v0, v1, v2, v3}, Lnbisdk/ka;->a(Lnbisdk/ri;Ljava/lang/String;J)V

    const-string v1, "gwsid"

    invoke-virtual {p0, v1}, Lnbisdk/le;->getProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_2

    const-string v2, "gwsubid"

    invoke-virtual {v0, v2, v1}, Lnbisdk/ri;->b(Ljava/lang/String;Ljava/lang/String;)V

    :cond_2
    return-object v0

    :catch_0
    move-exception v2

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    goto :goto_0

    :cond_3
    const-string v2, "client-guid"

    invoke-virtual {v0, v2, v1}, Lnbisdk/ri;->c(Ljava/lang/String;[B)V

    goto :goto_1

    :cond_4
    move-object v1, v2

    goto :goto_0
.end method

.method static synthetic c(Lnbisdk/dg;)Lnbisdk/rj;
    .locals 1

    iget-object v0, p0, Lnbisdk/dg;->cW:Lnbisdk/rj;

    return-object v0
.end method

.method static synthetic d(Lnbisdk/dg;)I
    .locals 1

    iget v0, p0, Lnbisdk/dg;->jg:I

    return v0
.end method

.method static synthetic e(Lnbisdk/dg;)Lnbisdk/kg;
    .locals 1

    iget-object v0, p0, Lnbisdk/dg;->jc:Lnbisdk/kg;

    return-object v0
.end method

.method static synthetic f(Lnbisdk/dg;)Lcom/navbuilder/nb/c;
    .locals 1

    iget-object v0, p0, Lnbisdk/dg;->jh:Lcom/navbuilder/nb/c;

    return-object v0
.end method

.method private flush()V
    .locals 2

    iget-object v0, p0, Lnbisdk/dg;->je:Ljava/io/ByteArrayOutputStream;

    monitor-enter v0

    :try_start_0
    iget-object v1, p0, Lnbisdk/dg;->je:Ljava/io/ByteArrayOutputStream;

    invoke-virtual {v1}, Ljava/lang/Object;->notify()V

    monitor-exit v0

    return-void

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method static synthetic g(Lnbisdk/dg;)Lnbisdk/bq;
    .locals 1

    iget-object v0, p0, Lnbisdk/dg;->jf:Lnbisdk/bq;

    return-object v0
.end method


# virtual methods
.method public final a(Ljava/lang/String;[B)I
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lnbisdk/rp;
        }
    .end annotation

    invoke-virtual {p0}, Lnbisdk/dg;->isOpen()Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "output on non-open connection"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    iget-object v0, p0, Lnbisdk/dg;->jd:Lnbisdk/mm;

    invoke-virtual {v0, p1, p2}, Lnbisdk/mm;->a(Ljava/lang/String;[B)I

    move-result v0

    invoke-direct {p0}, Lnbisdk/dg;->flush()V

    return v0
.end method

.method public final a(Lcom/navbuilder/nb/c;)V
    .locals 0

    iput-object p1, p0, Lnbisdk/dg;->jh:Lcom/navbuilder/nb/c;

    return-void
.end method

.method public final cancel()V
    .locals 0

    return-void
.end method

.method protected final close()V
    .locals 1

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lnbisdk/dg;->g(Lcom/navbuilder/nb/NBException;)V

    return-void
.end method

.method protected final g(Lcom/navbuilder/nb/NBException;)V
    .locals 5

    iget-object v0, p0, Lnbisdk/dg;->cW:Lnbisdk/rj;

    monitor-enter v0

    :try_start_0
    iget v1, p0, Lnbisdk/dg;->jg:I

    if-lez v1, :cond_4

    sget-boolean v1, Lnbisdk/bk;->DEBUG:Z

    if-eqz v1, :cond_0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Connection is open and about to be closed.  Connection.close("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    if-eqz p1, :cond_5

    invoke-virtual {p1}, Lcom/navbuilder/nb/NBException;->getMessage()Ljava/lang/String;

    move-result-object v2

    :goto_0
    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-wide/high16 v2, 0x1000

    const/16 v4, 0x8

    invoke-static {v1, v2, v3, v4}, Lnbisdk/pn;->a(Ljava/lang/String;JB)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    :cond_0
    :try_start_1
    iget-object v1, p0, Lnbisdk/dg;->jf:Lnbisdk/bq;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lnbisdk/dg;->jf:Lnbisdk/bq;

    invoke-virtual {v1}, Lnbisdk/bq;->close()V

    const/4 v1, 0x0

    iput-object v1, p0, Lnbisdk/dg;->jf:Lnbisdk/bq;

    :cond_1
    iget-object v1, p0, Lnbisdk/dg;->jc:Lnbisdk/kg;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lnbisdk/dg;->jc:Lnbisdk/kg;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v1, :cond_3

    :try_start_2
    sget-boolean v1, Lnbisdk/bk;->DEBUG:Z

    if-eqz v1, :cond_2

    const-string v1, "Connection.closeSocket()"

    const-wide/high16 v2, 0x1000

    const/16 v4, 0x8

    invoke-static {v1, v2, v3, v4}, Lnbisdk/pn;->a(Ljava/lang/String;JB)V

    :cond_2
    iget-object v1, p0, Lnbisdk/dg;->jc:Lnbisdk/kg;

    invoke-interface {v1}, Lnbisdk/kg;->close()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    :goto_1
    const/4 v1, 0x0

    :try_start_3
    iput-object v1, p0, Lnbisdk/dg;->jc:Lnbisdk/kg;
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :cond_3
    const/4 v1, 0x0

    :try_start_4
    iput v1, p0, Lnbisdk/dg;->jg:I

    invoke-direct {p0}, Lnbisdk/dg;->flush()V

    iget-object v1, p0, Lnbisdk/dg;->cW:Lnbisdk/rj;

    invoke-interface {v1, p1}, Lnbisdk/rj;->f(Lcom/navbuilder/nb/NBException;)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1

    :cond_4
    :goto_2
    :try_start_5
    monitor-exit v0
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    return-void

    :cond_5
    :try_start_6
    const-string v2, "null"
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_1
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_1

    goto :goto_0

    :catch_0
    move-exception v1

    :try_start_7
    const-string v1, "IOException thrown in Connection.closeSocket()"

    const-wide/high16 v2, 0x1000

    const/4 v4, 0x2

    invoke-static {v1, v2, v3, v4}, Lnbisdk/pn;->a(Ljava/lang/String;JB)V
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    goto :goto_1

    :catchall_0
    move-exception v1

    const/4 v2, 0x0

    :try_start_8
    iput v2, p0, Lnbisdk/dg;->jg:I

    invoke-direct {p0}, Lnbisdk/dg;->flush()V

    iget-object v2, p0, Lnbisdk/dg;->cW:Lnbisdk/rj;

    invoke-interface {v2, p1}, Lnbisdk/rj;->f(Lcom/navbuilder/nb/NBException;)V

    throw v1
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_1
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_1

    :catch_1
    move-exception v1

    :try_start_9
    sget-boolean v2, Lnbisdk/bk;->cG:Z

    if-eqz v2, :cond_4

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Exception caught : "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v2, "close(NimException)"

    const-string v3, "Connection.java"

    const/16 v4, 0x7d

    invoke-static {v1, v2, v3, v4}, Lnbisdk/ef;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    goto :goto_2

    :catchall_1
    move-exception v1

    monitor-exit v0
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_1

    throw v1
.end method

.method protected final isOpen()Z
    .locals 1

    iget v0, p0, Lnbisdk/dg;->jg:I

    if-lez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
